package com.zpark.cloud.alibaba.mapper;

import com.zpark.cloud.alibaba.entity.Order;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * 订单持久层接口
 */
public interface IOrderMapper extends Mapper<Order> {

    // 根据用户的id修改订单状态
    @Update("UPDATE t_order SET status = 1 WHERE user_id = #{uid}")
    Integer updateOrderByUserId(Long uid);
}
